jQuery(document).ready(function() {
					function newspages() {
						jQuery.getJSON("servlet/Newsfy", page);
						function page(data) {
							var $newspages = jQuery(".mem_tab").empty();
							var news = data.newsList;
							$newspages
									.append("<tr>"
											+ "<td width=\"500\" style=\"text-align: center;\">文章标题</td>"
											+ "<td width=\"430\" style=\"text-align: center;\"> 创建时间</td>"
											+ "</tr>");
							for (var a = 0; a < news.length; a++) {
								$newspages
										.append("<tr>"
												+ "<td width=\"500\" style=\"text-align: center;\"><a class='news' id='"
												+ news[a].id
												+ "' href='javascript:;'>"
												+ news[a].title
												+ "</a></td>"
												+ "<td width=\"430\" style=\"text-align: center;\">"
												+ news[a].createTime + "</td>"
												+ "</tr>");
							}
							$first = jQuery(
									"<a href=\"javascirpt:;\" class=\"p_pre\">上一页</a>")
									.click(
											function() {
												jQuery
														.getJSON(
																"servlet/Newsfy",
																"pageIndex="
																		+ (data.currPageNo - 1),
																page);
											});
							$last = jQuery(
									"<a href=\"javascirpt:;\" class=\"p_pre\">下一页</a>")
									.click(
											function() {
												jQuery
														.getJSON(
																"servlet/Newsfy",
																"pageIndex="
																		+ (data.currPageNo + 1),
																page);
											});
							var $page = jQuery(".pages").empty();
							$page.append($first).append($last);
						}
					}
					newspages();
					jq(".uel").on(
							"click",
							".news",
							function() {
								var d = this.id;
								var $newspages = jq(".uel").empty();
								jQuery.getJSON("servlet/Newsfy", "id=" + d,
										page);
								function page(data) {
									$newspages.append("<h3>" + data[0].title
											+ "</h3><div>" + data[0].content
											+ "</div>");
								}
							})
				})